<?php

namespace Common\Controller;
class AuthController extends BaseController
{
    protected static $AuthUser;
    public function _initialize()
    {
        parent::_initialize();
        if(session('Admin')){
            self::$AuthUser=session('Admin');
        }else{
            $this->ajaxReturn([
                'code'=>-1,
                'info'=>'登录失效，请重新登录！'
            ]);
        }
    }
}